import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_goods_item_detail_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeGoodsItemDetailEntity {
	int? id;
	int? fSellerUserId;
	int? fGoodsTypeId;
	int? fGoodsZoneTypeId;
	String? name;
	String? iconPath;
	String? dis;
	double? price;
	int? priceId;
	String? type;
	String? sendAddress;
	double? freightFee;
	double? spikePrice;
	double? groupPurchasePrice;
	dynamic isHotSales;
	dynamic goodsZoneType;
	String? remark;
	String? iconPath2;

	XinHeGoodsItemDetailEntity();

	factory XinHeGoodsItemDetailEntity.fromJson(Map<String, dynamic> json) => $XinHeGoodsItemDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeGoodsItemDetailEntityToJson(this);

	XinHeGoodsItemDetailEntity copyWith({int? id, int? fSellerUserId, int? fGoodsTypeId, int? fGoodsZoneTypeId, String? name, String? iconPath, String? dis, double? price, int? priceId, String? type, String? sendAddress, double? freightFee, double? spikePrice, double? groupPurchasePrice, dynamic isHotSales, dynamic goodsZoneType, String? remark,String? iconPath2}) {
		return XinHeGoodsItemDetailEntity()
			..id= id ?? this.id
			..fSellerUserId= fSellerUserId ?? this.fSellerUserId
			..fGoodsTypeId= fGoodsTypeId ?? this.fGoodsTypeId
			..fGoodsZoneTypeId= fGoodsZoneTypeId ?? this.fGoodsZoneTypeId
			..name= name ?? this.name
			..iconPath= iconPath ?? this.iconPath
			..dis= dis ?? this.dis
			..price= price ?? this.price
			..priceId= priceId ?? this.priceId
			..type= type ?? this.type
			..sendAddress= sendAddress ?? this.sendAddress
			..freightFee= freightFee ?? this.freightFee
			..spikePrice= spikePrice ?? this.spikePrice
			..groupPurchasePrice= groupPurchasePrice ?? this.groupPurchasePrice
			..isHotSales= isHotSales ?? this.isHotSales
			..goodsZoneType= goodsZoneType ?? this.goodsZoneType
			..remark= remark ?? this.remark
		  ..iconPath2= iconPath2 ?? this.iconPath2;

	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}